package com.j.rwp.util;


/**
 * <p>
 * 常量池,存储站点用使用到的常量
 * </p>
 * 
 * 
 */
public final class Constants {

	/**
	 * <p>
	 * 登录用户session的key值
	 * </p>
	 */
	public static final String LOGINUSER = "LOGINUSER";

	/**
	 * 
	 * <p>
	 * 产品属性
	 * </p>
	 * 
	 */
	public static final class product {
		/**
		 * <p>
		 * 产品大图.width.key
		 * </p>
		 */
		public static final String PRODUCTPHOTO_LARGEPHOTO_WIDTH_KEY = "productPhoto.largePhoto.width";
		
		/**
		 * <p>
		 * 产品大图.height.key
		 * </p>
		 */
		public static final String PRODUCTPHOTO_LARGEPHOTO_HEIGHT_KEY = "productPhoto.largePhoto.height";
		
		/**
		 * <p>
		 * 产品小图.width
		 * </p>
		 */
		public static final String PRODUCTPHOTO_THUMBNAILPHOTO_WIDTH_KEY = "productPhoto.thumbNailPhoto.width";
		
		/**
		 * <p>
		 * 产品小图.height
		 * </p>
		 */
		public static final String PRODUCTPHOTO_THUMBNAILPHOTO_HEIGHT_KEY = "productPhoto.thumbNailPhoto.height";
	

	}

	/**
	 * 
	 * <p>
	 * 购物车
	 * </p>
	 * 
	 */
	public static final class shoppingCart {
		/**
		 * <p>
		 * 购物车key值
		 * </p>
		 */
		public static final String CART = "SHOPPINGCART";
	}

	/**
	 * 
	 * <p>
	 * 订单属性
	 * </p>
	 * 
	 */
	public static final class myOrder {
		/**
		 * <p>
		 * 我的订单图片height
		 * </p>
		 */
		public static final String MYORDER_PRODUCT_PHOTO_HEIGHT_KEY = "myOrder.product.photo.height";

		/**
		 * <p>
		 * 我的订单图片width
		 * </p>
		 */
		public static final String MYORDER_PRODUCT_PHOTO_WIDTH_KEY = "myOrder.product.photo.width";
	
		
		public static final String PAYSUCCESS = "PAYSUCCESS";

		//订单查询状态
		//全部订单0-进行中7-已完成1-无效6
		public static final String ALL = "0";
		public static final String ISDOING = "7"; 
		public static final String HAVAFINISHED = "1";
		public static final String INVALID = "6";
		
		//订单时间查询
		public static final String ORDER_30 = "1";
		public static final String ORDER_THISYEAR = "2"; 
		public static final String ORDER_LASTYEAR = "3";
		public static final String ORDER_OLDER = "4";
		
		public static final String ORDERTIME_30 = "orderDate between dateadd(day,-30,getdate()) and dateadd(day,0,getdate())";
		public static final String ORDERTIME_THISYEAR = "datename(yy,orderDate) >= datename(yy, getdate())";
		public static final String ORDERTIME_LASTYEAR = "datename(yy,orderDate) = datename(yy, dateadd(year,-1,getdate()))";
		public static final String ORDERTIME_OLDER = "datename(yy,orderDate) < datename(yy, dateadd(year,-2,getdate()))";
		

	}
}
